#include <iostream>
#include <cstdlib>
#include <ctime>

int main()
{
	std::srand(std::time(0));
	int n = 10;
	std::cout << n << '\n';
	std::cout << std::rand() % 20 + 1;
	for (int i = 1 ; i < n; i++)
		std::cout << ' ' << std::rand() % 20 + 1;
	std::cout << '\n';


	std::cout << std::rand() % 20 + 1;
	for (int i = 1 ; i < n; i++)
		std::cout << ' ' << std::rand() % 20 + 1;
	std::cout << '\n';
}

